package com.ibeeking.found.msg.api.feign;

import com.ibeeking.found.msg.api.common.dto.ShopDTO;
import com.ibeeking.found.msg.api.feign.fallback.MsgSystemBFallbackFactory;
import com.ibeeking.nematos.utils.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author ibeeking
 */
@FeignClient(name = "base-system-b-server", path = "/b", contextId = "MsgSystemBClient", fallbackFactory = MsgSystemBFallbackFactory.class, decode404 = true)
public interface MsgSystemBClient {

    /**
     * 通过店铺id查列表基本展示信息
     *
     * @param shopIds
     * @return
     */
    @PostMapping(value = "/shops/feign/v1/queryListByShopIds")
    ResponseResult<List<ShopDTO>> queryListByShopIds(@RequestBody List<Long> shopIds);

}
